package demo.main;

import org.nutz.mvc.annotation.*;

@Modules({ MutiReport.class, ColumnReport.class, TimeSeriesChart.class,
		GanttChart.class, Bar3DChart.class, Pie3DChart.class,
		PercentageColumns.class, Crosstab.class, Crosstab2.class,
		GroupRow.class, MeterChart.class, ScatterChart.class,
		ThermometerChart.class, AreaChart.class, GroupRow2.class,
		MutiPage.class, MutiAxisChar.class, IReportTemplate.class })
public class MainModule {
	@At("/checkUser")
	@Ok("json")
	public String checkUser(@Param("username") String username,
			@Param("pwd") String pwd) {
		if ("qintx".equalsIgnoreCase(username)
				&& "111111".equalsIgnoreCase(pwd)) {
			return "success";
		} else {
			return "failed";
		}
	}

	@At("/toSamples")
	@Ok("jsp:jsp.samplelist")
	public String toSamplePage() {
		return "success";
	}
}
